package com.example.picturestorage.service;

import com.example.picturestorage.bean.Book;
import com.github.pagehelper.PageInfo;

import java.util.List;


/**
 * @author 28116
 */
public interface BookService {

    PageInfo<Book> findBookFenYe(int page, int pageSize);

    List<Book> findAllBook();

    int addBook(Book book);

    void deleteAllBook();

    Book findBookById(Book book);

    void deleteBookById(Integer id);

    void deleteBookOverId(Integer id);

    Book findBookWithPublisherByBookId(Integer bookId);
}
